3.1.13 \(\int (c i+d i x)^2 (A+B \log (\frac {e (a+b x)}{c+d x})) \, dx\) [13]
Optimal. Leaf size=118 \[ -\frac {B (b c-a d)^2 i^2 x}{3 b^2}-\frac {B (b c-a d) i^2 (c+d x)^2}{6 b d}-\frac {B (b c-a d)^3 i^2 \log (a+b x)}{3 b^3 d}+\frac {i^2 (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{3 d} \]
[Out]
-1/3*B*(-a*d+b*c)^2*i^2*x/b^2-1/6*B*(-a*d+b*c)*i^2*(d*x+c)^2/b/d-1/3*B*(-a*d+b*c)^3*i^2*ln(b*x+a)/b^3/d+1/3*i^
2*(d*x+c)^3*(A+B*ln(e*(b*x+a)/(d*x+c)))/d
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2548, 21, 45}
\begin {gather*} \frac {i^2 (c+d x)^3 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{3 d}-\frac {B i^2 (b c-a d)^3 \log (a+b x)}{3 b^3 d}-\frac {B i^2 x (b c-a d)^2}{3 b^2}-\frac {B i^2 (c+d x)^2 (b c-a d)}{6 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(c*i + d*i*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)]),x]
[Out]
-1/3*(B*(b*c - a*d)^2*i^2*x)/b^2 - (B*(b*c - a*d)*i^2*(c + d*x)^2)/(6*b*d) - (B*(b*c - a*d)^3*i^2*Log[a + b*x]
)/(3*b^3*d) + (i^2*(c + d*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3*d)
Rule 21
Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
d*x, a + b*x])
Rule 45
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])
Rule 2548
Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_)]*(B_.))*((f_.) + (g_.)*(x_))^(m_.
), x_Symbol] :> Simp[(f + g*x)^(m + 1)*((A + B*Log[e*((a + b*x)^n/(c + d*x)^n)])/(g*(m + 1))), x] - Dist[B*n*(
(b*c - a*d)/(g*(m + 1))), Int[(f + g*x)^(m + 1)/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f, g, A
, B, m, n}, x] && EqQ[n + mn, 0] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && !(EqQ[m, -2] && IntegerQ[n])
Rubi steps
\begin {align*} \int (13 c+13 d x)^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \, dx &=\frac {169 (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{3 d}-\frac {B \int \frac {2197 (b c-a d) (c+d x)^2}{a+b x} \, dx}{39 d}\\ &=\frac {169 (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{3 d}-\frac {(169 B (b c-a d)) \int \frac {(c+d x)^2}{a+b x} \, dx}{3 d}\\ &=\frac {169 (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{3 d}-\frac {(169 B (b c-a d)) \int \left (\frac {d (b c-a d)}{b^2}+\frac {(b c-a d)^2}{b^2 (a+b x)}+\frac {d (c+d x)}{b}\right ) \, dx}{3 d}\\ &=-\frac {169 B (b c-a d)^2 x}{3 b^2}-\frac {169 B (b c-a d) (c+d x)^2}{6 b d}-\frac {169 B (b c-a d)^3 \log (a+b x)}{3 b^3 d}+\frac {169 (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 97, normalized size = 0.82 \begin {gather*} \frac {i^2 \left (-\frac {B (b c-a d) \left (2 b d (b c-a d) x+b^2 (c+d x)^2+2 (b c-a d)^2 \log (a+b x)\right )}{2 b^3}+(c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )\right )}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[(c*i + d*i*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)]),x]
[Out]
(i^2*(-1/2*(B*(b*c - a*d)*(2*b*d*(b*c - a*d)*x + b^2*(c + d*x)^2 + 2*(b*c - a*d)^2*Log[a + b*x]))/b^3 + (c + d
*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])))/(3*d)
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1498\) vs.
\(2(110)=220\).
time = 0.58, size = 1499, normalized size = 12.70
| | |
method |
result |
size |
| | |
risch |
\(\frac {i^{2} \left (d x +c \right )^{3} B \ln \left (\frac {e \left (b x +a \right )}{d x +c}\right )}{3 d}+\frac {i^{2} d^{2} A \,x^{3}}{3}+i^{2} d A c \,x^{2}+\frac {i^{2} d^{2} B a \,x^{2}}{6 b}-\frac {i^{2} d B c \,x^{2}}{6}+i^{2} A \,c^{2} x +\frac {i^{2} d^{2} B \ln \left (b x +a \right ) a^{3}}{3 b^{3}}-\frac {i^{2} d B \ln \left (b x +a \right ) a^{2} c}{b^{2}}+\frac {i^{2} B \ln \left (b x +a \right ) a \,c^{2}}{b}-\frac {i^{2} B \ln \left (b x +a \right ) c^{3}}{3 d}-\frac {i^{2} d^{2} B \,a^{2} x}{3 b^{2}}+\frac {i^{2} d B a c x}{b}-\frac {2 i^{2} B \,c^{2} x}{3}\) |
\(206\) |
derivativedivides |
\(\text {Expression too large to display}\) |
\(1499\) |
default |
\(\text {Expression too large to display}\) |
\(1499\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((d*i*x+c*i)^2*(A+B*ln(e*(b*x+a)/(d*x+c))),x,method=_RETURNVERBOSE)
[Out]
-1/d^2*e*(a*d-b*c)*(1/3*A*d*e^2*i^2*(a^2*d^2-2*a*b*c*d+b^2*c^2)/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3+1/3*B*
d^3/e*i^2/b^3*ln(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)*a^2-2/3*B*d^2/e*i^2/b^2*ln(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x
+c))*d)*a*c+1/3*B*d/e*i^2/b*ln(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)*c^2-1/6*B*d^3*e*i^2/b/(b*e-(b*e/d+(a*d-b*c
)*e/d/(d*x+c))*d)^2*a^2+1/3*B*d^2*e*i^2/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^2*a*c-1/6*B*d*e*i^2*b/(b*e-(b*e/
d+(a*d-b*c)*e/d/(d*x+c))*d)^2*c^2-1/3*B*d^3*i^2/b^2/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)*a^2+2/3*B*d^2*i^2/b/
(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)*a*c-1/3*B*d*i^2/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)*c^2+B*d^4*e*i^2*ln
(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))/b/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3*a^2-2*B*
d^3*e*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^
3*a*c+B*d^2*e*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))*b/(b*e-(b*e/d+(a*d-b*c)*e/d/(d
*x+c))*d)^3*c^2-B*d^5*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))^2/b^2/(b*e-(b*e/d+(a*d
-b*c)*e/d/(d*x+c))*d)^3*a^2+2*B*d^4*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))^2/b/(b*e
-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3*a*c-B*d^3*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c)
)^2/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3*c^2+1/3*B*d^6/e*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*
c)*e/d/(d*x+c))^3/b^3/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3*a^2-2/3*B*d^5/e*i^2*ln(b*e/d+(a*d-b*c)*e/d/(d*x+
c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))^3/b^2/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3*a*c+1/3*B*d^4/e*i^2*ln(b*e/d+(
a*d-b*c)*e/d/(d*x+c))*(b*e/d+(a*d-b*c)*e/d/(d*x+c))^3/b/(b*e-(b*e/d+(a*d-b*c)*e/d/(d*x+c))*d)^3*c^2)
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 272 vs.
\(2 (99) = 198\).
time = 0.28, size = 272, normalized size = 2.31 \begin {gather*} -\frac {1}{3} \, A d^{2} x^{3} - A c d x^{2} - {\left (x \log \left (\frac {b x e}{d x + c} + \frac {a e}{d x + c}\right ) + \frac {a \log \left (b x + a\right )}{b} - \frac {c \log \left (d x + c\right )}{d}\right )} B c^{2} - {\left (x^{2} \log \left (\frac {b x e}{d x + c} + \frac {a e}{d x + c}\right ) - \frac {a^{2} \log \left (b x + a\right )}{b^{2}} + \frac {c^{2} \log \left (d x + c\right )}{d^{2}} - \frac {{\left (b c - a d\right )} x}{b d}\right )} B c d - \frac {1}{6} \, {\left (2 \, x^{3} \log \left (\frac {b x e}{d x + c} + \frac {a e}{d x + c}\right ) + \frac {2 \, a^{3} \log \left (b x + a\right )}{b^{3}} - \frac {2 \, c^{3} \log \left (d x + c\right )}{d^{3}} - \frac {{\left (b^{2} c d - a b d^{2}\right )} x^{2} - 2 \, {\left (b^{2} c^{2} - a^{2} d^{2}\right )} x}{b^{2} d^{2}}\right )} B d^{2} - A c^{2} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((d*i*x+c*i)^2*(A+B*log(e*(b*x+a)/(d*x+c))),x, algorithm="maxima")
[Out]
-1/3*A*d^2*x^3 - A*c*d*x^2 - (x*log(b*x*e/(d*x + c) + a*e/(d*x + c)) + a*log(b*x + a)/b - c*log(d*x + c)/d)*B*
c^2 - (x^2*log(b*x*e/(d*x + c) + a*e/(d*x + c)) - a^2*log(b*x + a)/b^2 + c^2*log(d*x + c)/d^2 - (b*c - a*d)*x/
(b*d))*B*c*d - 1/6*(2*x^3*log(b*x*e/(d*x + c) + a*e/(d*x + c)) + 2*a^3*log(b*x + a)/b^3 - 2*c^3*log(d*x + c)/d
^3 - ((b^2*c*d - a*b*d^2)*x^2 - 2*(b^2*c^2 - a^2*d^2)*x)/(b^2*d^2))*B*d^2 - A*c^2*x
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 206 vs.
\(2 (99) = 198\).
time = 0.41, size = 206, normalized size = 1.75 \begin {gather*} -\frac {2 \, A b^{3} d^{3} x^{3} - 2 \, B b^{3} c^{3} \log \left (\frac {d x + c}{d}\right ) + {\left ({\left (6 \, A - B\right )} b^{3} c d^{2} + B a b^{2} d^{3}\right )} x^{2} + 2 \, {\left ({\left (3 \, A - 2 \, B\right )} b^{3} c^{2} d + 3 \, B a b^{2} c d^{2} - B a^{2} b d^{3}\right )} x + 2 \, {\left (B b^{3} d^{3} x^{3} + 3 \, B b^{3} c d^{2} x^{2} + 3 \, B b^{3} c^{2} d x\right )} \log \left (\frac {{\left (b x + a\right )} e}{d x + c}\right ) + 2 \, {\left (3 \, B a b^{2} c^{2} d - 3 \, B a^{2} b c d^{2} + B a^{3} d^{3}\right )} \log \left (\frac {b x + a}{b}\right )}{6 \, b^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((d*i*x+c*i)^2*(A+B*log(e*(b*x+a)/(d*x+c))),x, algorithm="fricas")
[Out]
-1/6*(2*A*b^3*d^3*x^3 - 2*B*b^3*c^3*log((d*x + c)/d) + ((6*A - B)*b^3*c*d^2 + B*a*b^2*d^3)*x^2 + 2*((3*A - 2*B
)*b^3*c^2*d + 3*B*a*b^2*c*d^2 - B*a^2*b*d^3)*x + 2*(B*b^3*d^3*x^3 + 3*B*b^3*c*d^2*x^2 + 3*B*b^3*c^2*d*x)*log((
b*x + a)*e/(d*x + c)) + 2*(3*B*a*b^2*c^2*d - 3*B*a^2*b*c*d^2 + B*a^3*d^3)*log((b*x + a)/b))/(b^3*d)
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 491 vs.
\(2 (100) = 200\).
time = 1.53, size = 491, normalized size = 4.16 \begin {gather*} \frac {A d^{2} i^{2} x^{3}}{3} + \frac {B a i^{2} \left (a^{2} d^{2} - 3 a b c d + 3 b^{2} c^{2}\right ) \log {\left (x + \frac {B a^{3} c d^{2} i^{2} - 3 B a^{2} b c^{2} d i^{2} + \frac {B a^{2} d i^{2} \left (a^{2} d^{2} - 3 a b c d + 3 b^{2} c^{2}\right )}{b} + 4 B a b^{2} c^{3} i^{2} - B a c i^{2} \left (a^{2} d^{2} - 3 a b c d + 3 b^{2} c^{2}\right )}{B a^{3} d^{3} i^{2} - 3 B a^{2} b c d^{2} i^{2} + 3 B a b^{2} c^{2} d i^{2} + B b^{3} c^{3} i^{2}} \right )}}{3 b^{3}} - \frac {B c^{3} i^{2} \log {\left (x + \frac {B a^{3} c d^{2} i^{2} - 3 B a^{2} b c^{2} d i^{2} + 3 B a b^{2} c^{3} i^{2} + \frac {B b^{3} c^{4} i^{2}}{d}}{B a^{3} d^{3} i^{2} - 3 B a^{2} b c d^{2} i^{2} + 3 B a b^{2} c^{2} d i^{2} + B b^{3} c^{3} i^{2}} \right )}}{3 d} + x^{2} \left (A c d i^{2} + \frac {B a d^{2} i^{2}}{6 b} - \frac {B c d i^{2}}{6}\right ) + x \left (A c^{2} i^{2} - \frac {B a^{2} d^{2} i^{2}}{3 b^{2}} + \frac {B a c d i^{2}}{b} - \frac {2 B c^{2} i^{2}}{3}\right ) + \left (B c^{2} i^{2} x + B c d i^{2} x^{2} + \frac {B d^{2} i^{2} x^{3}}{3}\right ) \log {\left (\frac {e \left (a + b x\right )}{c + d x} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((d*i*x+c*i)**2*(A+B*ln(e*(b*x+a)/(d*x+c))),x)
[Out]
A*d**2*i**2*x**3/3 + B*a*i**2*(a**2*d**2 - 3*a*b*c*d + 3*b**2*c**2)*log(x + (B*a**3*c*d**2*i**2 - 3*B*a**2*b*c
**2*d*i**2 + B*a**2*d*i**2*(a**2*d**2 - 3*a*b*c*d + 3*b**2*c**2)/b + 4*B*a*b**2*c**3*i**2 - B*a*c*i**2*(a**2*d
**2 - 3*a*b*c*d + 3*b**2*c**2))/(B*a**3*d**3*i**2 - 3*B*a**2*b*c*d**2*i**2 + 3*B*a*b**2*c**2*d*i**2 + B*b**3*c
**3*i**2))/(3*b**3) - B*c**3*i**2*log(x + (B*a**3*c*d**2*i**2 - 3*B*a**2*b*c**2*d*i**2 + 3*B*a*b**2*c**3*i**2
+ B*b**3*c**4*i**2/d)/(B*a**3*d**3*i**2 - 3*B*a**2*b*c*d**2*i**2 + 3*B*a*b**2*c**2*d*i**2 + B*b**3*c**3*i**2))
/(3*d) + x**2*(A*c*d*i**2 + B*a*d**2*i**2/(6*b) - B*c*d*i**2/6) + x*(A*c**2*i**2 - B*a**2*d**2*i**2/(3*b**2) +
B*a*c*d*i**2/b - 2*B*c**2*i**2/3) + (B*c**2*i**2*x + B*c*d*i**2*x**2 + B*d**2*i**2*x**3/3)*log(e*(a + b*x)/(c
+ d*x))
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 2475 vs.
\(2 (99) = 198\).
time = 5.05, size = 2475, normalized size = 20.97 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((d*i*x+c*i)^2*(A+B*log(e*(b*x+a)/(d*x+c))),x, algorithm="giac")
[Out]
-1/6*(2*B*b^7*c^4*e^4*log(-b*e + (b*x*e + a*e)*d/(d*x + c)) - 8*B*a*b^6*c^3*d*e^4*log(-b*e + (b*x*e + a*e)*d/(
d*x + c)) + 12*B*a^2*b^5*c^2*d^2*e^4*log(-b*e + (b*x*e + a*e)*d/(d*x + c)) - 8*B*a^3*b^4*c*d^3*e^4*log(-b*e +
(b*x*e + a*e)*d/(d*x + c)) + 2*B*a^4*b^3*d^4*e^4*log(-b*e + (b*x*e + a*e)*d/(d*x + c)) - 6*(b*x*e + a*e)*B*b^6
*c^4*d*e^3*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c) + 24*(b*x*e + a*e)*B*a*b^5*c^3*d^2*e^3*log(-b*e + (
b*x*e + a*e)*d/(d*x + c))/(d*x + c) - 36*(b*x*e + a*e)*B*a^2*b^4*c^2*d^3*e^3*log(-b*e + (b*x*e + a*e)*d/(d*x +
c))/(d*x + c) + 24*(b*x*e + a*e)*B*a^3*b^3*c*d^4*e^3*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c) - 6*(b*x
*e + a*e)*B*a^4*b^2*d^5*e^3*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c) + 6*(b*x*e + a*e)^2*B*b^5*c^4*d^2*
e^2*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c)^2 - 24*(b*x*e + a*e)^2*B*a*b^4*c^3*d^3*e^2*log(-b*e + (b*x
*e + a*e)*d/(d*x + c))/(d*x + c)^2 + 36*(b*x*e + a*e)^2*B*a^2*b^3*c^2*d^4*e^2*log(-b*e + (b*x*e + a*e)*d/(d*x
+ c))/(d*x + c)^2 - 24*(b*x*e + a*e)^2*B*a^3*b^2*c*d^5*e^2*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c)^2 +
6*(b*x*e + a*e)^2*B*a^4*b*d^6*e^2*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c)^2 - 2*(b*x*e + a*e)^3*B*b^4
*c^4*d^3*e*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c)^3 + 8*(b*x*e + a*e)^3*B*a*b^3*c^3*d^4*e*log(-b*e +
(b*x*e + a*e)*d/(d*x + c))/(d*x + c)^3 - 12*(b*x*e + a*e)^3*B*a^2*b^2*c^2*d^5*e*log(-b*e + (b*x*e + a*e)*d/(d*
x + c))/(d*x + c)^3 + 8*(b*x*e + a*e)^3*B*a^3*b*c*d^6*e*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c)^3 - 2*
(b*x*e + a*e)^3*B*a^4*d^7*e*log(-b*e + (b*x*e + a*e)*d/(d*x + c))/(d*x + c)^3 + 6*(b*x*e + a*e)*B*b^6*c^4*d*e^
3*log((b*x*e + a*e)/(d*x + c))/(d*x + c) - 24*(b*x*e + a*e)*B*a*b^5*c^3*d^2*e^3*log((b*x*e + a*e)/(d*x + c))/(
d*x + c) + 36*(b*x*e + a*e)*B*a^2*b^4*c^2*d^3*e^3*log((b*x*e + a*e)/(d*x + c))/(d*x + c) - 24*(b*x*e + a*e)*B*
a^3*b^3*c*d^4*e^3*log((b*x*e + a*e)/(d*x + c))/(d*x + c) + 6*(b*x*e + a*e)*B*a^4*b^2*d^5*e^3*log((b*x*e + a*e)
/(d*x + c))/(d*x + c) - 6*(b*x*e + a*e)^2*B*b^5*c^4*d^2*e^2*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^2 + 24*(b*x
*e + a*e)^2*B*a*b^4*c^3*d^3*e^2*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^2 - 36*(b*x*e + a*e)^2*B*a^2*b^3*c^2*d^
4*e^2*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^2 + 24*(b*x*e + a*e)^2*B*a^3*b^2*c*d^5*e^2*log((b*x*e + a*e)/(d*x
+ c))/(d*x + c)^2 - 6*(b*x*e + a*e)^2*B*a^4*b*d^6*e^2*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^2 + 2*(b*x*e + a
*e)^3*B*b^4*c^4*d^3*e*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^3 - 8*(b*x*e + a*e)^3*B*a*b^3*c^3*d^4*e*log((b*x*
e + a*e)/(d*x + c))/(d*x + c)^3 + 12*(b*x*e + a*e)^3*B*a^2*b^2*c^2*d^5*e*log((b*x*e + a*e)/(d*x + c))/(d*x + c
)^3 - 8*(b*x*e + a*e)^3*B*a^3*b*c*d^6*e*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^3 + 2*(b*x*e + a*e)^3*B*a^4*d^7
*e*log((b*x*e + a*e)/(d*x + c))/(d*x + c)^3 + 2*A*b^7*c^4*e^4 - 3*B*b^7*c^4*e^4 - 8*A*a*b^6*c^3*d*e^4 + 12*B*a
*b^6*c^3*d*e^4 + 12*A*a^2*b^5*c^2*d^2*e^4 - 18*B*a^2*b^5*c^2*d^2*e^4 - 8*A*a^3*b^4*c*d^3*e^4 + 12*B*a^3*b^4*c*
d^3*e^4 + 2*A*a^4*b^3*d^4*e^4 - 3*B*a^4*b^3*d^4*e^4 + 5*(b*x*e + a*e)*B*b^6*c^4*d*e^3/(d*x + c) - 20*(b*x*e +
a*e)*B*a*b^5*c^3*d^2*e^3/(d*x + c) + 30*(b*x*e + a*e)*B*a^2*b^4*c^2*d^3*e^3/(d*x + c) - 20*(b*x*e + a*e)*B*a^3
*b^3*c*d^4*e^3/(d*x + c) + 5*(b*x*e + a*e)*B*a^4*b^2*d^5*e^3/(d*x + c) - 2*(b*x*e + a*e)^2*B*b^5*c^4*d^2*e^2/(
d*x + c)^2 + 8*(b*x*e + a*e)^2*B*a*b^4*c^3*d^3*e^2/(d*x + c)^2 - 12*(b*x*e + a*e)^2*B*a^2*b^3*c^2*d^4*e^2/(d*x
+ c)^2 + 8*(b*x*e + a*e)^2*B*a^3*b^2*c*d^5*e^2/(d*x + c)^2 - 2*(b*x*e + a*e)^2*B*a^4*b*d^6*e^2/(d*x + c)^2)*(
b*c/((b*c*e - a*d*e)*(b*c - a*d)) - a*d/((b*c*e - a*d*e)*(b*c - a*d)))/(b^6*d*e^3 - 3*(b*x*e + a*e)*b^5*d^2*e^
2/(d*x + c) + 3*(b*x*e + a*e)^2*b^4*d^3*e/(d*x + c)^2 - (b*x*e + a*e)^3*b^3*d^4/(d*x + c)^3)
________________________________________________________________________________________
Mupad [B]
time = 4.59, size = 290, normalized size = 2.46 \begin {gather*} x^2\,\left (\frac {d\,i^2\,\left (3\,A\,a\,d+9\,A\,b\,c+B\,a\,d-B\,b\,c\right )}{6\,b}-\frac {A\,d\,i^2\,\left (3\,a\,d+3\,b\,c\right )}{6\,b}\right )-x\,\left (\frac {\left (3\,a\,d+3\,b\,c\right )\,\left (\frac {d\,i^2\,\left (3\,A\,a\,d+9\,A\,b\,c+B\,a\,d-B\,b\,c\right )}{3\,b}-\frac {A\,d\,i^2\,\left (3\,a\,d+3\,b\,c\right )}{3\,b}\right )}{3\,b\,d}-\frac {c\,i^2\,\left (3\,A\,a\,d+3\,A\,b\,c+B\,a\,d-B\,b\,c\right )}{b}+\frac {A\,a\,c\,d\,i^2}{b}\right )+\ln \left (\frac {e\,\left (a+b\,x\right )}{c+d\,x}\right )\,\left (B\,c^2\,i^2\,x+B\,c\,d\,i^2\,x^2+\frac {B\,d^2\,i^2\,x^3}{3}\right )+\frac {\ln \left (a+b\,x\right )\,\left (B\,a^3\,d^2\,i^2-3\,B\,a^2\,b\,c\,d\,i^2+3\,B\,a\,b^2\,c^2\,i^2\right )}{3\,b^3}+\frac {A\,d^2\,i^2\,x^3}{3}-\frac {B\,c^3\,i^2\,\ln \left (c+d\,x\right )}{3\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((c*i + d*i*x)^2*(A + B*log((e*(a + b*x))/(c + d*x))),x)
[Out]
x^2*((d*i^2*(3*A*a*d + 9*A*b*c + B*a*d - B*b*c))/(6*b) - (A*d*i^2*(3*a*d + 3*b*c))/(6*b)) - x*(((3*a*d + 3*b*c
)*((d*i^2*(3*A*a*d + 9*A*b*c + B*a*d - B*b*c))/(3*b) - (A*d*i^2*(3*a*d + 3*b*c))/(3*b)))/(3*b*d) - (c*i^2*(3*A
*a*d + 3*A*b*c + B*a*d - B*b*c))/b + (A*a*c*d*i^2)/b) + log((e*(a + b*x))/(c + d*x))*((B*d^2*i^2*x^3)/3 + B*c^
2*i^2*x + B*c*d*i^2*x^2) + (log(a + b*x)*(B*a^3*d^2*i^2 + 3*B*a*b^2*c^2*i^2 - 3*B*a^2*b*c*d*i^2))/(3*b^3) + (A
*d^2*i^2*x^3)/3 - (B*c^3*i^2*log(c + d*x))/(3*d)
________________________________________________________________________________________